package com.mondo.financialwallet.presentation.ui.activity;

import android.content.Context;
import android.content.Intent;
import android.support.v4.view.ViewPager;

import com.example.common.ui.BaseActivity;
import com.mondo.financialwallet.R;
import com.mondo.financialwallet.presentation.ui.adapter.SimpleFragmentPagerAdapter;
import com.mondo.financialwallet.presentation.ui.fragment.FinancialOrderListFragment;
import com.mondo.financialwallet.presentation.ui.fragment.TokenTransactionRecordFragment;
import com.mondo.financialwallet.presentation.utils.ActivityTitleBarHelper;

import java.util.Arrays;

import butterknife.Bind;

/**
 * 账单明细
 */
public class BillingDetailsActivity extends BaseActivity {

    public static void launch(Context context){
        context.startActivity(new Intent(context, BillingDetailsActivity.class));
    }

    @Bind(R.id.simple_view_pager) ViewPager mSimpleViewPager;

    @Override
    protected int getLayoutID() {
        return R.layout.activity_billing_details;
    }

    @Override
    protected void initActions() {
        ActivityTitleBarHelper.init(this, R.string.title_billing_details);

        mSimpleViewPager.setAdapter(new SimpleFragmentPagerAdapter(
                getSupportFragmentManager(),
                Arrays.asList("钱包", "理财"),
                Arrays.asList(new TokenTransactionRecordFragment(), new FinancialOrderListFragment())
        ));
    }
}
